home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Atari Mega Archive 1
/
Atari Mega Archive - Volume 1.iso
/
gnu
/
progutil
/
stdwin.zoo
/
alfa
/
menu.h
< prev
next >
Wrap
C/C++ Source or Header
|
1989-10-17
|
725b
|
27 lines
/* TERMCAP STDWIN -- MENU DEFINITIONS. */
struct item {
char *text; /* The item's text */
char *shortcut; /* Visible representation of the shortcuts */
tbool enabled; /* Can be selected */
tbool checked; /* Check mark left of menu text */
};
struct menu {
int id; /* Menu id, reported by wgetevent */
char *title; /* Menu title string */
bool local; /* Set if must explicitly attach to windows */
bool dirty; /* Set if items have changed */
int left, right; /* Left & right edge of title in menu bar */
int maxwidth; /* Max width of items */
int nitems; /* Number of items */
struct item *itemlist; /* List of items */
};
#define MENU struct menu
struct menubar {
int nmenus;
MENU **menulist;
};